package homework00101;

public class Demo5 {

	public static void main(String[] args) {
		for(int i=10000;i<100000;i++){
			int wan=i/10000;
			int qian=i/1000%10;
			int bai=i/100%10;
			int shi=i/10%10;
			int ge=i%10;
			if(wan==ge&&qian==shi){
				System.out.println(i);
			}
		}

	}

}
